//
//  LabelDeleteLine.swift
//  AirlineReservation
//
//  Created by Kevin on 2020/2/22.
//  Copyright © 2020 Kevin. All rights reserved.
//

import UIKit

class LabelDeleteLine: UILabel {
    
    
    // Only override draw() if you perform custom drawing.
    // An empty implementation adversely affects performance during animation.
    override func draw(_ rect: CGRect) {
        super.draw(rect)
        
        if let textSize = text?.boundingRect(w: MARGIN100, h: MARGIN20, fontSize: 14) {
            // 文本颜色
            textColor.set()
            // 画线
            UIRectFill(CGRect(x: 0, y: textSize.height * 0.5, width: textSize.width, height: 1))
        }
    }
    
    
}
